libxl: consolidate casting to xc psr type to a function
authorWei Liu <wei.liu2@citrix.com>
Wed, 18 May 2016 15:19:45 +0000 (16:19 +0100)
committerWei Liu <wei.liu2@citrix.com>
Thu, 19 May 2016 11:49:59 +0000 (12:49 +0100)
commita396c2549e079ab2f644aab8b2e7f47a8d0e3937
tree3994857843fb841efeaf001f86687a433be26028
parent3c0d13d9d16f598c1f8078982eb261d1262a7f7b
libxl: consolidate casting to xc psr type to a function

In commit 31268fea (libxl: fix passing the type argument to xc_psr_*),
casting to xc psr type was done at each call site.

This patch consolidates casting into a function to avoid casting at each
conversion point. Each call site remains more type safe.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_psr.c